page {
  background-color: #242328;
}

.im-page {
  position: relative;
  overflow: hidden;
  background-color: #323237;
}

.im-list_new {
  top: 0;
  opacity: 0;
  width: 100%;
  position: absolute;
  overflow-x: hidden;
}

.im-list--item {
  padding: 0 32px 0 16px;
  margin: 48px 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  .list-item--avatar {
    width: 70px;
    height: 70px;
    border-radius: 0;
    margin-right: 27px;
    flex-shrink: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover; // 填充整个父容器
    }
  }

  .list-item--name {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #f0e877;
    // line-height: 80px;
  }

  .list-item--content {
    // max-width: 90vh;
    // max-width: 90%;
    width: 90%;
    margin-right: 20px;
    padding: 18px;
    font-size: 26px;
    // background: #18a058;
    background: #424249;
    color: white;
    border-radius: 8px;
    line-height: 1.4;
    position: relative;
    white-space: pre-line;

    // &::after {
    //   content: '';
    //   position: absolute;
    //   right: -22px;
    //   top: 18px;
    //   border: 12px solid transparent;
    //   border-left-color: #18a058;
    // }
    &::after {
      right: auto;
      left: -22px;
      border-right-color: #0ac82f;
      border-left-color: transparent;
    }
  }

  &__other {
    .list-item--content {
      background: #242328;
      color: white;

      &::after {
        right: auto;
        left: -22px;
        border-right-color: #F3F6F6;
        border-left-color: transparent;
      }
    }
  }
}

.placeholder-box {
  width: 100%;
  height: 142px;
}

.im-toolbar {
  position: fixed;
  left: 0;
  width: 100%;
  background: #323239;
  border-top: 1px solid #323239;
  display: flex;
  align-items: center;
  z-index: 200;
  justify-content: center;

  input {
    flex: 1;
    margin: 14px 0px 14px 24px;
    padding: 15px 24px;
    background: #f8f8f8;
    border-radius: 36px;
    font-size: 28px;
  }

  Textarea {
    font-size: 26px;
    padding: 15px 20px;
    margin: 15px 20px;
    border-radius: 20px;
    border: 0px;
    color: white;
    background-color: #242328;
    // ::placeholder {
    //   line-height: 14px;
    // }
  }

  .send-button {
    overflow: hidden;
    margin: 0 20px 0 5px;
    display: block;
    transition: width 0.2s ease;

    &.hidden {
      width: 0;
    }
  }

  &--icon {
    transform: rotate(45deg);
    padding: 24px;
  }

  .rotate-in {
    animation: rotateIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  .rotate-out {
    animation: rotateOut 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  &--media {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;

    view {
      padding: 48px;
      text-align: center;
      font-size: 24px;

      at-icon {
        border-radius: 100%;
        margin-bottom: 20px;
        display: block;
      }
    }
  }
}

@keyframes rotateIn {
  0% {
    transform: rotate(45deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateOut {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

.trash-icon,
.trash-icon:active {
  background: red;
}

.conversation,
.conversation:active {
  background: #18a058;
}

.conversation-disable,
.conversation-disable:active {
  background: gray;
}
